package com.malie.myspringboot.designPattern.abstractFactory;

public class FactoryProduce {
    public static AbstractFactory getFactory(String choice) {
        switch (choice) {
            case "phone":
                return new PhoneFactory();
            case "tablet":
                return new TabletFactory();
            default:
                return null;
        }
    }
}
